package com.zhangmeng.online.exam.service.impl;

import com.zhangmeng.online.exam.dao.UserDao;
import com.zhangmeng.online.exam.entity.User;
import com.zhangmeng.online.exam.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zm
 * @date 2025/3/22 15:43
 * @version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public User loadUserByUsername(String username) {
        return this.userDao.findByUsername(username);
    }
}
